package com.xd.pre.modules.tpshop.virtuaBean;

import lombok.Data;

@Data
public class Cart_virtrual { //for Android ShoppingCart.java

    private Integer cart_id;
    private Integer user_id;
    private Integer goods_id;

    private String goods_sn;            // "ECS000000" 商品货号
    private String goods_name;        //
    private Double market_price;        // 市场价
    private Double goods_price;            // 本店售价
    private Double memberGoodsPrice;    // 会员折扣价, 如果没有登录, 或者不是会员 这里价钱跟goods_price 一样   	app没用到 可不要

    private Integer goods_num;            // 购物车购买数量

    private Integer store_count;        // 该商品此规格库存数量
    private String spec_key;            // "3_4"			选择的规格key
    private String spec_key_name;        //"颜色2:绿色 尺码:S", // 选择的规格

    private String bar_code;            //"003"	// 商品对应的 sku 或者说 条码
    private Integer selected;            // 在购物车中是否  被复选框选中  1:选中（默认）, 0:未选中(多选效果)
//	private Double goods_fee;  	   		// 小计多少钱	(需server计算，不需要再数据库中添加字段) 这个没搞清楚是什么，先不要了


//	"total_price": {
//  "total_fee": 2458,   // 总计金额
//  "cut_fee": 13394.4  // 共节约多少钱	//（单个商品市场价 - 单个商品本店价=  单个商品节省的钱）x 数量
//}


    public Cart_virtrual() { }
    public Cart_virtrual(Integer cart_id, Integer user_id, Integer goods_id,
                         String goods_sn, String goods_name, Double market_price,
                         Double goods_price,		Double memberGoodsPrice, Integer goods_num, Integer store_count,
                         String spec_key, String spec_key_name, String bar_code,
                         Integer selected) {
        super();
        this.cart_id = cart_id;
        this.user_id = user_id;
        this.goods_id = goods_id;
        this.goods_sn = goods_sn;
        this.goods_name = goods_name;
        this.market_price = market_price;
        this.goods_price = goods_price;
        this.memberGoodsPrice = memberGoodsPrice;

        this.goods_num = goods_num;
        this.store_count = store_count;
        this.spec_key = spec_key;
        this.spec_key_name = spec_key_name;
        this.bar_code = bar_code;
        this.selected = selected;
    }
}
